package net.sunofbeach.blog.pojo.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author bing_  @create 2021/12/2-16:01
 */

@Data
@ApiModel(value = "ImageQuery 对象", description = "图片查询条件")
public class ImageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "UUID")
    private String targetId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "图片原名称")
    private String name;

    @ApiModelProperty(value = "图片类型")
    private String contentType;

    @ApiModelProperty(value = "状态：0已删除，1正常；")
    private String state;

    @ApiModelProperty(value = "来源：loop、link、avatar、image、article")
    private String original;

    /**
     * 注意，这里使用的是String类型，前端传过来的数据无需进行类型转换
     */
    @ApiModelProperty(value = "查询开始时间", example = "2021-11-11 10:10:10")
    private String begin;

    @ApiModelProperty(value = "查询结束时间", example = "2021-11-11 10:10:10")
    private String end;
}
